<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/setting/sensitive/save.html">
	<input type="hidden" name="type" value="${type!''}">
	  <div class="layui-form-item">
	    <label class="layui-form-label" style="width: 120px;">敏感词<font color="red">*</font>：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="keyword" required lay-verify="required" placeholder="请输入敏感词" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label" style="width: 120px;">词性：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="partofspeech" placeholder="请输入词性" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-button">
	    <div class="layui-button-block">
	      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
	      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	    </div>
	  </div>
	</form>
</div>
 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render(); //更新全部
  form.verify({
	  repass: function(value){
	    if(value != $('#password').val()){
	      return '两次输入的密码不一致，请确认';
	    }
	  }
	});      
});
</script>